import request from '@/utils/request'
/**
 * 相册分组
 */
export function albumSelect(params) {
  return request({
    url: '/server/album/select',
    method: 'get',
    data: params
  })
}
/**
 * 新增分组
 */
export function albumSaveGroups(params) {
  return request({
    url: '/server/album/saveGroups',
    method: 'get',
    data: params
  })
}
/**
 * 删除分组
 */
export function albumDeleteGroup(params) {
  return request({
    url: '/server/album/deleteGroup',
    method: 'get',
    data: params
  })
}
/**
 * 修改分组
 */
export function albumChangeGroupName(params) {
  return request({
    url: '/server/album/changeGroupName',
    method: 'post',
    data: params
  })
}

/**
 * 相册列表
 */
export function albumSelectImage(params) {
  return request({
    url: '/server/album/selectImage',
    method: 'get',
    data: params
  })
}
/**
 * 新增图片
 */
export function albumSaveImage(params) {
  return request({
    url: '/server/album/saveImageList',
    method: 'post',
    data: params
  })
}
/**
 * 新增图片
 */
export function albumDeleteImage(params) {
  return request({
    url: '/server/album/deleteImage',
    method: 'post',
    data: params
  })
}
/**
 * 商品详情模板列表
 */
export function goodsTemplateList(params) {
  return request({
    url: '/server/goodsTemplate/list',
    method: 'get',
    data: params
  })
}
/**
 * 商品详情模板新增
 */
export function goodsTemplateSave(params) {
  return request({
    url: '/server/goodsTemplate/save',
    method: 'post',
    data: params
  })
}
/**
 * 商品详情模板新增
 */
export function goodsTemplateUpdate(params) {
  return request({
    url: '/server/goodsTemplate/update',
    method: 'post',
    data: params
  })
}
/**
 * 商品详情模板新增
 */
export function goodsTemplateDelete(params) {
  return request({
    url: '/server/goodsTemplate/delete',
    method: 'get',
    data: params
  })
}
/**
 * 三级城市
 */
export function areaSelect(params) {
  return request({
    url: '/server/area/select',
    method: 'get',
    data: params
  })
}
/**
 * 配送模板列表
 */
export function freightTemplateList(params) {
  return request({
    url: '/server/freightTemplate/list',
    method: 'get',
    data: params
  })
}
/**
 * 配送模板更新
 */
export function freightTemplateUpdate(params) {
  return request({
    url: '/server/freightTemplate/update',
    method: 'post',
    data: params
  })
}
/**
 * 配送模板保存
 */
export function freightTemplateSave(params) {
  return request({
    url: '/server/freightTemplate/save',
    method: 'post',
    data: params
  })
}
/**
 * 配送模板删除
 */
export function freightTemplateDelete(params) {
  return request({
    url: '/server/freightTemplate/delete',
    method: 'post',
    data: params
  })
}
